﻿namespace UniSender
{
    public interface IDeserializer
    {
        T Deserialize<T>(string source);
    }

    public class Deserializer : IDeserializer
    {
        System.Web.Script.Serialization.JavaScriptSerializer json = new System.Web.Script.Serialization.JavaScriptSerializer();

        public T Deserialize<T>(string source)
        {
            return json.Deserialize<T>(source);
        }
    }
}
